package com.ln.jvm.classloader;

/**
 * <pre>
 *     JDK8结果：
 *     sun.misc.Launcher$AppClassLoader@18b4aac2
 *     sun.misc.Launcher$ExtClassLoader@135fbaa4
 *     null
 *     
 *     参考：
 *     https://pdai.tech/md/java/jvm/java-jvm-classload.html#%E5%AF%BB%E6%89%BE%E7%B1%BB%E5%8A%A0%E8%BD%BD%E5%99%A8
 * </pre>
 */
public class ClassLoaderTest {

    public static void main(String[] args) {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
        System.out.println(loader);
        System.out.println(loader.getParent());
        System.out.println(loader.getParent().getParent());
    }

}
